/**
 * @name zhangyy-g@grandsoft.com.cn
 * @description zhangyy's code
 * Date: 15-4-17
 * Time: 下午5:54
 *
 */
(function($) {
    'use strict'
    $(document).on('click', '.stateful', function (e) {
        Backbone.history.navigate(this.hash, true)
        return false
    })

    var Router = Backbone.Router.extend({
        routes: {
            '': 'init',
            '/': 'init',
            ':fileId': 'init',
            ':fileId/:filter': 'init'
        },
        init: function(fileId, filter) {
            $.jps.publish('init', {
                fileId: fileId,
                filter: filter
            })
        }
    })

    //new Router()
})(jQuery)